import { ApiVersoin } from '@/common/enums/httpEnum'

const Url = {
  getConfig: `/mini-program-navigation/get-config`,
  getFilterTags: `${ApiVersoin.V6}/project/filter-item`,
  projectList: `${ApiVersoin.V5}/project/list`,
  projectTop: `${ApiVersoin.V3}/project/top`,
  homeParlour: `${ApiVersoin.V8}/home/get-parlour`,
  hotCity: `${ApiVersoin.V2}/city/hot-city`,
  getCityId: `/applet-city/get-city-id`,
  recommendRoomType: `${ApiVersoin.V7}/room-type/recommend-room-type`,
}

export const getConfig = (params) => uni.$uv.http.get(Url.getConfig, { params, custom: {} })
export const getFilterTags = (params) => uni.$uv.http.get(Url.getFilterTags, { params, custom: { showMessage: false } })
export const projectList = (params) => uni.$uv.http.get(Url.projectList, { params, custom: {} })
export const projectTop = (params) => uni.$uv.http.get(Url.projectTop, { params, custom: {} })
export const homeParlour = (params) => uni.$uv.http.get(Url.homeParlour, { params, custom: {} })
export const hotCity = (params) => uni.$uv.http.get(Url.hotCity, { params, custom: {} })
export const getCityId = (params) => uni.$uv.http.get(Url.getCityId, { params, custom: { showMessage: false } })
export const recommendRoomType = (params) => uni.$uv.http.get(Url.recommendRoomType, { params, custom: { showMessage: false } })
